From ccd04887a3f15ce0e52af801d8a70c91d695f78c Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Wed, 9 Jan 2013 10:49:27 +0100 Subject: [PATCH] * net/tramp.el (tramp-eshell-directory-change): Check remote-path first in session cache: When `tramp-own-remote-path' is in `tramp-remote-path', the remote path is only set in the session cache. --- lisp/ChangeLog | 7 +++++++ lisp/net/tramp.el | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e60321744bb..35a8d1171db 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2013-01-09 Jürgen Hötzel + + * net/tramp.el (tramp-eshell-directory-change): Check remote-path + first in session cache: When `tramp-own-remote-path' is in + `tramp-remote-path', the remote path is only set in the session + cache. + 2013-01-09 Glenn Morris * emacs-lisp/trace.el (trace-function-foreground) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index f8db03ee4d7..2c4aac0ac8a 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3901,7 +3901,12 @@ Only works for Bourne-like shells." (with-parsed-tramp-file-name default-directory nil (mapconcat 'identity - (tramp-get-connection-property v "remote-path" nil) + (or + ;; When `tramp-own-remote-path' is in `tramp-remote-path', + ;; the remote path is only set in the session cache. + (tramp-get-connection-property + (tramp-get-connection-process v) "remote-path" nil) + (tramp-get-connection-property v "remote-path" nil)) ":")) (getenv "PATH")))) -- 2.30.2